<template>
  <div>
    <div v-for="(item, i) in arr" :key="i">
      <input type="checkbox" :value="item" v-model="jia">
      <span>{{ item }}</span>
    </div>
    <div>累加{{max}}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
arr: [9, 15, 19, 25, 29, 31, 48, 57, 62, 79, 87],
      jia: []
    }
},
computed: {
max() {
   return this.jia.reduce((prve,item) => prve + item,0)
  }
}
}
</script>

<style></style>
